<script type="text/ecmascript-6">
import {check} from '../utils/auth'

export default {
  functional: true,
  props: {
    authority: {
      type: Array,
      required: true
    }
  },
  render(h, context) {
    const {props, scopedSlots} = context
    return check(props.authority) ? scopedSlots.default() : null
  }
}
</script>
